package com.tencent.wxcloudrun.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.tencent.wxcloudrun.common.enums.vo.IEnumVo;
import lombok.Getter;

@Getter
public enum StatusEnum implements IEnumVo {
    ACCOUNT_PAID(0, "已付款"),
    RECEIVED(1, "已接单"),
    FINISH(2, "已完成");
    @EnumValue
    private int value;
    @JsonValue
    private String desc;

    StatusEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int value() {
        return this.value;
    }

    @Override
    public String desc() {
        return this.desc;
    }
}

